package com.chainyoung.component_tmperson.entity;

public class OwnDebitDetail {


    /**
     * loans_info : {"id":1,"user_id":12,"coin":"bit","purpose":"","interests":"10000.000000","period":12,"period_unit":"month","rate":"0.04000000","repay_day":"26","addtime":1537970399,"audit_status":0,"audit_fail_reason":null,"audit_time":null,"used_principal":"10000.000000","repaid_period":0,"repay_complete":0,"period_line":"2018.09.26 - 2019.09.26"}
     * repayment_info : {"repayment_principal":0,"repayment_interests":0}
     */

    private LoansInfoBean loans_info;
    private RepaymentInfoBean repayment_info;

    public LoansInfoBean getLoans_info() {
        return loans_info;
    }

    public void setLoans_info(LoansInfoBean loans_info) {
        this.loans_info = loans_info;
    }

    public RepaymentInfoBean getRepayment_info() {
        return repayment_info;
    }

    public void setRepayment_info(RepaymentInfoBean repayment_info) {
        this.repayment_info = repayment_info;
    }

    public static class LoansInfoBean {
        /**
         * id : 1
         * user_id : 12
         * coin : bit
         * purpose :
         * interests : 10000.000000
         * period : 12
         * period_unit : month
         * rate : 0.04000000
         * repay_day : 26
         * addtime : 1537970399
         * audit_status : 0
         * audit_fail_reason : null
         * audit_time : null
         * used_principal : 10000.000000
         * repaid_period : 0
         * repay_complete : 0
         * period_line : 2018.09.26 - 2019.09.26
         */

        private String id;
        private String user_id;
        private String coin;
        private String purpose;
        private String principal;
        private int period;
        private String period_unit;
        private String rate;
        private String repay_day;
        private long addtime;
        private int audit_status;
        private Object audit_fail_reason;
        private Object audit_time;
        private String used_principal;
        private int repaid_period;
        private int repay_complete;
        private String period_line;



        public String getCoin() {
            return coin;
        }

        public void setCoin(String coin) {
            this.coin = coin;
        }

        public String getPurpose() {
            return purpose;
        }

        public void setPurpose(String purpose) {
            this.purpose = purpose;
        }


        public int getPeriod() {
            return period;
        }

        public void setPeriod(int period) {
            this.period = period;
        }

        public String getPeriod_unit() {
            return period_unit;
        }

        public void setPeriod_unit(String period_unit) {
            this.period_unit = period_unit;
        }

        public String getRate() {
            return rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getRepay_day() {
            return repay_day;
        }

        public void setRepay_day(String repay_day) {
            this.repay_day = repay_day;
        }



        public int getAudit_status() {
            return audit_status;
        }

        public void setAudit_status(int audit_status) {
            this.audit_status = audit_status;
        }

        public Object getAudit_fail_reason() {
            return audit_fail_reason;
        }

        public void setAudit_fail_reason(Object audit_fail_reason) {
            this.audit_fail_reason = audit_fail_reason;
        }

        public Object getAudit_time() {
            return audit_time;
        }

        public void setAudit_time(Object audit_time) {
            this.audit_time = audit_time;
        }

        public String getUsed_principal() {
            return used_principal;
        }

        public void setUsed_principal(String used_principal) {
            this.used_principal = used_principal;
        }

        public int getRepaid_period() {
            return repaid_period;
        }

        public void setRepaid_period(int repaid_period) {
            this.repaid_period = repaid_period;
        }

        public int getRepay_complete() {
            return repay_complete;
        }

        public void setRepay_complete(int repay_complete) {
            this.repay_complete = repay_complete;
        }

        public String getPeriod_line() {
            return period_line;
        }

        public void setPeriod_line(String period_line) {
            this.period_line = period_line;
        }


        public long getAddtime() {
            return addtime;
        }

        public void setAddtime(long addtime) {
            this.addtime = addtime;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPeriodUnitStr() {
            switch (period_unit) {
                case "day":
                    return "天";
                case "month":
                    return "月";
            }
            return "";
        }

        public String getPrincipal() {
            return principal;
        }

        public void setPrincipal(String principal) {
            this.principal = principal;
        }
    }

    public static class RepaymentInfoBean {
        /**
         * repayment_principal : 0
         * repayment_interests : 0
         */

        private String repayment_principal;//已还本金
        private String repayment_interests;//已还利息


        public String getRepayment_principal() {
            return repayment_principal;
        }

        public void setRepayment_principal(String repayment_principal) {
            this.repayment_principal = repayment_principal;
        }

        public String getRepayment_interests() {
            return repayment_interests;
        }

        public void setRepayment_interests(String repayment_interests) {
            this.repayment_interests = repayment_interests;
        }
    }
}
